package com.mall.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.goods.model.CategoryAttr;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 分类属性关联表 服务类
 * </p>
 *
 * @author Darren
 * @since 2022-08-18
 */
public interface ICategoryAttrService extends IService<CategoryAttr> {
    /**
     * 新增
     *
     * @param brand
     * @return
     */
    boolean addCategoryAttr(CategoryAttr categoryattr);

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    boolean deleteById(Integer categoryId);

    /**
     * 更新
     *
     * @param brand
     * @return
     */
    boolean updateCategoryAttr(CategoryAttr categoryattr);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    CategoryAttr getById(Integer categoryId);

    /**
     * 根据条件查询全部数据
     *
     * @param brand
     * @return
     */
    List<CategoryAttr> selectList(CategoryAttr categoryattr);

    /**
     * 分页查询
     *
     * @param brand
     * @return
     */
    Page<CategoryAttr> selectPage(Page<CategoryAttr> page, CategoryAttr categoryattr);
}
